Encrypt string.

Encrypts the provided input string and returns the encrypted value.

GET{accelqLoginUrl}/awb/api/2.0/{tenantCode}/{projectCode}/res/encrypt

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
projectCodestringYesProject Code found under Auth properties of ACCELQ User Profile
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Request Body

json
"Input string"

Responses

200 - Successful response with encrypted string.

json
"3kXu75r/kx3bCzjSVHsvcw=="

400 - Bad Request. Validation errors occurred.

json
{
  "error": "Input string is required."
}

403 - Forbidden - User does not have permission to encrypt string.

json
{
  "error": "User do not have authorization to access this feature."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X GET "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/res/encrypt" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '"Input string"'